package cuiyt.designpattern.responsibility.demo2;

/**
 * @author cyt
 * @create 2020-08-13 14:46
 */
public class PersonHandler implements Handler {
    @Override
    public Boolean process(Request request) {
        Integer price = request.getPrice();
        if (price < 100 && price > 0) {
            return true;
        } else {
            return null;
        }
    }
}
